<?
if (!defined('baseinfo')) {
    exitdata();
}   


?>
<script>
var rowfeature=1;
var setrowfeature=0;
function rowcreatefeature()
{

var code = '<tr>\n';
code += '<td>\n';
code += '<span class="center">'+rowfeature+'</span>\n';
code += '</td>\n';
code += '<td>\n';

code += '<div class="rdActv mgBtm10">\n';
code += '<input type="radio" checked="checked" value="1" name="ft_type['+(setrowfeature)+']">\n';
code += '<label for="">POI</label>\n';
code += '</div>\n';

code += '<div class="rdActv mgBtm10">\n';
code += '<input type="radio" value="2" name="ft_type['+(setrowfeature)+']">\n';
code += '<label for="">Trip</label>\n';
code += '</div>\n';


code += '<div class="rdActv mgBtm10">\n';
code += '<input type="radio" value="6" name="ft_type['+(setrowfeature)+']">\n';
code += '<label for="">Forum</label>\n';
code += '</div>\n';


code += '<div class="rdActv mgBtm10">\n';
code += '<input type="radio" value="3" name="ft_type['+(setrowfeature)+']" >\n';
code += '<label for="">Iframe</label>\n';
code += '<input type="text" placeholder="Link" name="ft_iframe['+(setrowfeature)+']"  class="clBg5 clBd2 bdBtm fs02">\n';
code += '</div>\n';

code += '<div class="rdActv mgBtm10">\n';
code += '<input type="radio"  value="4" name="ft_type['+(setrowfeature)+']">\n';
code += '<label for="">Internal Link</label>\n';
code += '<input type="text" placeholder="Link" name="ft_inlink['+(setrowfeature)+']" class="clBg5 clBd2 bdBtm fs02">\n';
code += '</div>\n';

code += '<div class="rdActv mgBtm10">\n';
code += '<input type="radio"  value="5" name="ft_type['+(setrowfeature)+']">\n';
code += '<label for="">Tag Link</label>\n';
code += '<input type="text" placeholder="Tag" name="ft_tag['+(setrowfeature)+']" class="clBg5 clBd2 bdBtm fs02">\n';
code += '</div>\n';


code += '<div class="rdActv mgBtm10">\n';
code += '<input type="radio"  value="8" name="ft_type['+(setrowfeature)+']">\n';
code += '<label for="">Infostant</label>\n';
code += '</div>\n';

code += '</td>\n';
code += '<td>\n';
code += '<div class="inpNameFtMn center mgBtm10">\n';
code += '<input type="text" placeholder="Feature Name" name="ft_fname['+(setrowfeature)+']" class="clBg5 clBd2 bdBtm fs02">\n';
code += '</div>\n';
code += '<div class="inpNameFtMn center">\n';
code += '<input type="text" placeholder="Feature Link" name="ft_flink['+(setrowfeature)+']" class="clBg5 clBd2 bdBtm fs02">\n';
code += '</div>\n';
code += '</td>\n';
code += '<td class="inpRole">\n';
code += '<div class="rdRole mgBtm10">\n';
code += '<input type="radio" value="1" name="ft_roleid['+(setrowfeature)+']" checked="checked" name="role">\n';
code += '<label for="">General User</label>\n';
code += '</div>\n';
code += '<div class="rdRole mgBtm10">\n';
code += '<input type="radio" value="2" name="ft_roleid['+(setrowfeature)+']" name="role">\n';
code += '<label for="">Premium User</label>\n';
code += '</div>\n';
code += '<div class="rdRole mgBtm10">\n';
code += '<input type="radio" value="3" name="ft_roleid['+(setrowfeature)+']" >\n';
code += '<label for="">Admin</label>\n';
code += '</div>\n';
code += '<div class="rdRole mgBtm10">\n';
code += '<input type="radio" value="4" name="ft_roleid['+(setrowfeature)+']">\n';
code += '<label for="">Super Admin</label>\n';
code += '</div>\n';
code += '</td>\n';
code += '<td class="inpPlug">\n';
<?if(count($data['pluginsdata'])){
    foreach($data['pluginsdata'] as $valueplugin)
    {
    if($valueplugin['static']==1)
    {
    
    ?>
code += '<div class="cbFtMn">\n';
code += '<input value="<?=$valueplugin['plugid']?>" name="ft_plugin['+(setrowfeature)+'][]" type="checkbox" id="txtCb">\n';
code += '<label for=""><?=ucfirst($valueplugin['name'])?></label>\n';
code += '</div>\n';
    
    <?
    }
    
    }

?>

<?}?>

//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="txtCb">\n';
//code += '<label for="">Text</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="imgCb">\n';
//code += '<label for="">Image</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="vdoCb">\n';
//code += '<label for="">VDO</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="galCb">\n';
//code += '<label for="">Gallery</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="ctcCb">\n';
//code += '<label for="">Contact</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="mapCb">\n';
//code += '<label for="">Map</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="fcltCb">\n';
//code += '<label for="">Facility</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="ulCb">\n';
//code += '<label for="">Upload</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="frmCb">\n';
//code += '<label for="">Form</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="pmtCb">\n';
//code += '<label for="">Promotion</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="shpCb">\n';
//code += '<label for="">Shop</label>\n';
//code += '</div>\n';

code += '</td>\n';
code += '<td class="inpPlug">\n';


<?if(count($data['pluginsdata'])){
    foreach($data['pluginsdata'] as $valueplugin)
    {
    if($valueplugin['static']==0)
    {
    
    ?>
code += '<div class="cbFtMn">\n';
code += '<input value="<?=$valueplugin['plugid']?>" name="ft_plugin['+(setrowfeature)+'][]" type="checkbox" id="txtCb">\n';
code += '<label for=""><?=ucfirst($valueplugin['name'])?></label>\n';
code += '</div>\n';
    
    <?
    }
    
    }

?>

<?}?>

//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="txtCb">\n';
//code += '<label for="">Text</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="imgCb">\n';
//code += '<label for="">Image</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="vdoCb">\n';
//code += '<label for="">VDO</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="galCb">\n';
//code += '<label for="">Gallery</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="ctcCb">\n';
//code += '<label for="">Contact</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="mapCb">\n';
//code += '<label for="">Map</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="fcltCb">\n';
//code += '<label for="">Facility</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="ulCb">\n';
//code += '<label for="">Upload</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="frmCb">\n';
//code += '<label for="">Form</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="pmtCb">\n';
//code += '<label for="">Promotion</label>\n';
//code += '</div>\n';
//code += '<div class="cbFtMn">\n';
//code += '<input type="checkbox" id="shpCb">\n';
//code += '<label for="">Shop</label>\n';
//code += '</div>\n';

code += '</td>\n';
code += '<td class="center">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '<input type="text" name="ft_sytag['+(setrowfeature)+'][]" class="inpSysTag clBg5 clBd2 bdBtm fs02 mgBtm10">\n';
code += '</td>\n';
code += '</tr>';
$('#rowdataclass').append(code);
rowfeature++;
setrowfeature++;

}
rowcreatefeature();


$( "#createfeatureform" ).submit(function( event ) {

  $.post(serviceinfo+'savecreatefeature', $('#createfeatureform').serialize(), function(data) {
  
  
  });

return false;
});

</script>
